import { axios } from '@/utils/request'

/**
 * 查询教室
 *
 * @author levin
 * @date 2022-07-04 16:51:18
 */
export function sysClassroomPage (parameter) {
  return axios({
    url: '/sysClassroom/page',
    method: 'post',
    data: parameter
  })
}

/**
 * 教室列表
 *
 * @author levin
 * @date 2022-07-04 16:51:18
 */
export function sysClassroomList (parameter) {
  return axios({
    url: '/sysClassroom/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加教室
 *
 * @author levin
 * @date 2022-07-04 16:51:18
 */
export function sysClassroomAdd (parameter) {
  return axios({
    url: '/sysClassroom/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑教室
 *
 * @author levin
 * @date 2022-07-04 16:51:18
 */
export function sysClassroomEdit (parameter) {
  return axios({
    url: '/sysClassroom/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除教室
 *
 * @author levin
 * @date 2022-07-04 16:51:18
 */
export function sysClassroomDelete (parameter) {
  return axios({
    url: '/sysClassroom/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出教室
 *
 * @author levin
 * @date 2022-07-04 16:51:18
 */
export function sysClassroomExport (parameter) {
  return axios({
    url: '/sysClassroom/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
